<div class="3u" id="sidebar1">
	<head>
	</head>
	<section>
		<h2>Tipo Evento</h2>
		<ul class="style3">
			<li class="first">

				<?php 
					if ($this->session->userdata('perfil') != "")
					{
						$url = $this->session->userdata('perfil');
					}
					else
					{
						$url = "welcome";
					}

				$i = 1;
				echo '<table style="width:300px">';
				foreach ($tipos as $value) 
				{
					if ($i % 2 != 0) 
						echo '<tr>';

					echo '<td><p class="date"><a href="'.base_url().'index.php/'.$url.'/listByTipo/'.$i.'">'.$value.'</a></p></td>';
					
					if ($i % 2 == 0) 
						echo '</tr>';
					
					$i++;
				}
				echo '</table>';

				?>
			</li>
		</ul>
		<h2>Categoría Evento</h2>
		<ul class="style3">
			<li class="first">

				<?php 
					if ($this->session->userdata('perfil') != "")
					{
						$url = $this->session->userdata('perfil');
					}
					else
					{
						$url = "welcome";
					}

				$i = 1;
				echo '<table style="width:300px">';
				foreach ($categorias as $value) 
				{
					if ($i % 2 != 0) 
						echo '<tr>';

					echo '<td><p class="date"><a href="'.base_url().'index.php/'.$url.'/listByCategoria/'.$i.'">'.$value.'</a></p></td>';
					
					if ($i % 2 == 0) 
						echo '</tr>';
					
					$i++;
				}
				echo '</table>';
				?>
			</li>
		</ul>
	</section>
</div>